import { defHttp } from "@/utils/http";
export const hrmCertificateApi = {
	//获得人员资格证书信息分页
	hrmCertsPage: async (params?: any) => {
		return await defHttp.get({ url: "/hrms/hrm-certs/page", params });
	},
	//创建人员资格证书信息
	hrmCertsCreate: async (params?: any) => {
		return await defHttp.post({ url: "/hrms/hrm-certs/create", params });
	},
	//删除人员资格证书信息
	hrmCertsDelete: async (params?: any) => {
		return await defHttp.delete({ url: `/hrms/hrm-certs/delete?id=${params.id}` });
	},
	//更新人员资格证书信息
	hrmCertsUpdate: async (params?: any) => {
		return await defHttp.put({ url: "/hrms/hrm-certs/update", params });
	}
};
